<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * Class Threadtype
 * @package App\Models
 * @mixin \Eloquent
 */
class Threadtype extends Model
{
    protected $table = 'threadtype';

    public function typevars()
    {
        return $this->hasMany(Typevar::class, 'sortid');
    }

    public function typevar()
    {
        return $this->belongsToMany(Typeoption::class,'typevar','sortid','option_id');
    }
}
